< previous page page_670 next page >

Page 670
Continued
Table 30.2
TagDescription
<TR> and </TR>Within the <TABLE> tag, indicates a row
<TD> and </TD>Within the <TR> tag, indicates a column
<FORM action=url method=method name=name> and </FORM>Denotes start and end of a form
<INPUT type=type value=value name=name>Form Input element
<FONT> and </FONT>Controls many aspects of the current font, including typeface and size

note.gif Internet Explorer 4.0 also includes support for DHTML, or dynamic HTML, which makes Web pages even more programmable by providing programmatic access to HTML tags. square.gif

The HTML codes listed in Table 30.2 are a small fraction of those available for use. In addition, codes can be nested in different ways to produce different results. Although HTML can do a lot of interesting things by itself, it lacks the power of a programming language. Other than jumping from one document to another and submitting forms, there are no real actions that you can take with standard HTML. However, you can script code to HTML to make Web pages a little more functional. Scripting languages such as VBScript and JScript are embedded in HTML and indicated by a special <SCRIPT> tag. The following example uses VBScript to display a message box:
<SCRIPT Language = "VBScript">
<!--
Dim nAnswer
nAnswer = MsgBox ("Would you like to visit my site?" ,vbYesNo,"Hello!")

If nAnswer = vbNo Then
    MsgBox "Well, then I will send you somewhere else!"
    Window.Location = "http://www.nowhere.com"
end if
-->
</SCRIPT>

<FONT SIZE = "+2"> This is a sample web Page! </FONT> <BR>
<B> I hope you enjoy it! </B> <BR><BR>
The following is a hyperlink:  <A HREF = "http://www.que.com"> Click me! </A>
The preceding HTML example contains a section of VBScript code added at the beginning. When the browser begins to parse the HTML in the Web page, it encounters the VBScript code and executes it. You will learn more details about using VBScript in your pages later in the chapter.

 
< previous page page_670 next page >